From: Adel Gadllah Date: Thu, 1 Oct 2009 21:44:16 +0000 (+0200) Subject: Fix rundialog not closing for internal commands X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10795 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8a2cc11cc06c3c8dc6c2d8f08a1a5b52113841c0;p=gnome-shell.git Fix rundialog not closing for internal commands Signed-off-by: Adel Gadllah https://bugzilla.gnome.org/show_bug.cgi?id=597076 --- diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 473375bb7..1d6ae4abf 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -148,6 +148,7 @@ RunDialog.prototype = { }, _run : function(command) { + this._commandError = false; let f; if (this._enableInternalCommands) f = this._internalCommands[command]; @@ -157,7 +158,6 @@ RunDialog.prototype = { f(); } else if (command) { try { - this._commandError = false; let [ok, len, args] = GLib.shell_parse_argv(command); let p = new Shell.Process({'args' : args}); p.run();